const {DataTemplateModel} = require('../../models/models')


function getTemplate(username= {}){
    return new Promise((res,rej) =>{
        DataTemplateModel.find(username).then(docs =>{
            console.log(docs)
            res(docs)
        }).catch(err =>res({status:0}))
    })

}


module.exports = getTemplate;
